class ApproachSaveEntity {
	String cityName;
	List<ApproachSaveEnterareadetail> enterAreaDetails;
	int arrivalTime;
	int consumerId;
	int cityCode;
	int provinceCode;
	dynamic id;
	String provinceName;
	int vehicleId;

	ApproachSaveEntity({this.cityName, this.enterAreaDetails, this.arrivalTime,this.consumerId, this.cityCode, this.provinceCode, this.id, this.provinceName, this.vehicleId});

	ApproachSaveEntity.fromJson(Map<String, dynamic> json) {
		cityName = json['cityName'];
		if (json['enterAreaDetails'] != null) {
			enterAreaDetails = new List<ApproachSaveEnterareadetail>();(json['enterAreaDetails'] as List).forEach((v) { enterAreaDetails.add(new ApproachSaveEnterareadetail.fromJson(v)); });
		}
		arrivalTime = json['arrivalTime'];
		consumerId=json['consumerId'];
		cityCode = json['cityCode'];
		provinceCode = json['provinceCode'];
		id = json['id'];
		provinceName = json['provinceName'];
		vehicleId = json['vehicleId'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['cityName'] = this.cityName;
		if (this.enterAreaDetails != null) {
      data['enterAreaDetails'] =  this.enterAreaDetails.map((v) => v.toJson()).toList();
    }
		data['arrivalTime'] = this.arrivalTime;
		data['consumerId']=this.consumerId;
		data['cityCode'] = this.cityCode;
		data['provinceCode'] = this.provinceCode;
		data['id'] = this.id;
		data['provinceName'] = this.provinceName;
		data['vehicleId'] = this.vehicleId;
		return data;
	}
}

class ApproachSaveEnterareadetail {
	List<ApproachSaveEnterareadetailsImage> images;
	double weight;
	dynamic id;
	int categoryId;

	ApproachSaveEnterareadetail({this.images, this.weight, this.id, this.categoryId});

	ApproachSaveEnterareadetail.fromJson(Map<String, dynamic> json) {
		if (json['images'] != null) {
			images = new List<ApproachSaveEnterareadetailsImage>();(json['images'] as List).forEach((v) { images.add(new ApproachSaveEnterareadetailsImage.fromJson(v)); });
		}
		weight = json['weight'];
		id = json['id'];
		categoryId = json['categoryId'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.images != null) {
      data['images'] =  this.images.map((v) => v.toJson()).toList();
    }
		data['weight'] = this.weight;
		data['id'] = this.id;
		data['categoryId'] = this.categoryId;
		return data;
	}
}

class ApproachSaveEnterareadetailsImage {
	int imageId;
	String imageUrl;

	ApproachSaveEnterareadetailsImage({this.imageId, this.imageUrl});

	ApproachSaveEnterareadetailsImage.fromJson(Map<String, dynamic> json) {
		imageId = json['imageId'];
		imageUrl = json['imageUrl'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['imageId'] = this.imageId;
		data['imageUrl'] = this.imageUrl;
		return data;
	}
}
